<!DOCTYPE html>
<html>

<head>
    <title>零点书喵--登录页面</title>
    <link rel="stylesheet" href="css/login1.css">
    <script>
        function check() {
            var username = document.getElementById("username");
            var password = document.getElementById("password");
            var phone = document.getElementById("phone");
            if (username.value == "") {
                alert("昵称不能为空")
                return false;
            } else if (password.value == "") {
                alert("密码不能为空")
                return false;

            } else if (phone.value == "") {
                alert("手机号不能为空")
                return false;
            } else {
                alert("注册成功")
                return true;
            }
        }
    </script>
</head>

<body>
    <div id="myform">
        <form onsubmit="return check()">
            <div id="welcome">
                欢迎你，小书喵
            </div>
            <div id="header">
                <div>
                    拉近，成长的距离
                </div>
                <div style="color: blue;float: right;">
                    <a href="#">登录</a>
                </div>
            </div>
            <div class="dinput">
                <input type="text" id="username" name="username" placeholder="昵称">
            </div>
            <div class="dinput">
                <input type="password" id="password" name="password" placeholder="密码">
            </div>
            <div class="dinput">
                <select name="quyu" style="height: 45px;border-radius: 4px;width:100px;margin-right: 15px;
					font-size: 20px; ">
						<option value="+86">+86</option>
						<option value="+54">+54</option>
						<option value="+87">+87</option>
						<option value="+999">+999</option>
					</select>
                <input type="tel" name="phone" id="phone" placeholder="电话" style="display: inline-block;width: 356px;">
            </div>
            <div class="dinput">
                <input type="submit" id="sub" value="提交">
            </div>
        </form>
    </div>
</body>

</html>